package guitplugin;

import com.sun.mirror.type.TypeMirror;

public class AptUtils {

  public static String getTypeQualifiedName(TypeMirror type, boolean allowPrimitives) {
    QualifiedNameVisitor visitor = new QualifiedNameVisitor(allowPrimitives);
    type.accept(visitor);
    return visitor.getQualifiedName();
  }

  public static String getProxyOrTypeQualifiedName(TypeMirror type, boolean allowPrimitives) {
    ProxyVisitor visitor = new ProxyVisitor(allowPrimitives);
    type.accept(visitor);
    return visitor.getQualifiedName();
  }
}
